// veto.C -- VETO to indicate off-TA beam
// written on Jun. 1st, 2024 by SUN Yazhou
void veto(){
  TFile *f = new TFile(getenv("TMP1"), "UPDATE");
  TH1 *hv = (TH1 *)f->Get("UserAnaTask/beam/hVETO");

  TCanvas *c1 = new TCanvas("c", "DT X1-2 for post Mag dcs", 1680, 1050);
  hv->Draw("colztext");
  c1->Print("veto.pdf");
} // end veto
